package com.dxysun.design.decorator;

public class Main
{
	public static void main(String[] args)
	{
		ConcreteComponent component = new ConcreteComponent();
		ConcreteDecoratorA concreteDecoratorA = new ConcreteDecoratorA(component);
		ConcreteDecoratorB concreteDecoratorB = new ConcreteDecoratorB(component);

		concreteDecoratorA.operation();
		concreteDecoratorB.operation();
	}
}
